//--------------------------------------------------------------------------------
// This file is a \"Sample\" as from Windows Workflow Foundation
// Samples
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This source code is intended only as a supplement to Microsoft
// Development Tools and/or on-line documentation.  See these other
// materials for detailed information regarding Microsoft code samples.
// 
// THIS CODE AND INFORMATION ARE PROVIDED AS IS WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
// PARTICULAR PURPOSE.
//--------------------------------------------------------------------------------
using System;
using System.ComponentModel;
using System.ComponentModel.Design;
using System.Collections;
using System.Drawing;
using System.Workflow.ComponentModel.Compiler;
using System.Workflow.ComponentModel.Serialization;
using System.Workflow.ComponentModel;
using System.Workflow.ComponentModel.Design;
using System.Workflow.Runtime;
using System.Workflow.Activities;
using System.Workflow.Activities.Rules;

namespace TestParallelIf
{
    public sealed partial class Workflow1 : SequentialWorkflowActivity
    {
        public Workflow1()
        {
            InitializeComponent();
        }

        private void ReturnTrue(object sender, ConditionalEventArgs e)
        {
            e.Result = true;
        }

        private void ReturnFalse(object sender, ConditionalEventArgs e)
        {
            e.Result = false;
        }

        private void codeActivity1_ExecuteCode_2(object sender, EventArgs e)
        {
            Console.WriteLine("ASD");
        }

        private void codeActivity_ExecuteCode_A(object sender, EventArgs e)
        {
            for (int i = 0; i < 100; i++)
                Console.WriteLine("A");
        }

        private void codeActivity_ExecuteCode_B(object sender, EventArgs e)
        {
            for (int i = 0; i < 100; i++)
                Console.WriteLine("B");
        }
    }

}
